package com.wl.dzt.sys.controller.result;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

/**
 * @author wl_code@163.com
 * @version 1.0
 * @date 2018/7/5/005
 * @description 动作结果集
 * 用于存储动作执行后返回的结的参数
 * 包含了实体数据，列表数据和表单执行返回集
 */
public class ActionResult {

    /**
     * 返回数据
     */
    private TableResult tableResult;
    /**
     * 实体
     */
    private Object entity;
    /**
     * 返回消息
     */
    private FormResult formResult;
    /**
     * 树形数据
     */
    private List<Map<String, Object>> treeData = new ArrayList<Map<String, Object>>();
    /**
     * 请求转发地址
     */
    private String url;

    public Object getEntity() {
        return entity;
    }

    public void setEntity(Object entity) {
        this.entity = entity;
    }

    public TableResult getTableResult() {
        return tableResult;
    }

    public void setTableResult(TableResult tableResult) {
        this.tableResult = tableResult;
    }

    public FormResult getFormResult() {
        return formResult;
    }

    public void setFormResult(FormResult formResult) {
        this.formResult = formResult;
    }

    public List<Map<String, Object>> getTreeData() {
        return treeData;
    }

    public void setTreeData(List<Map<String, Object>> treeData) {
        this.treeData = treeData;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

}
